package com.easyadmin.pro.modules.sys.mapper;

import com.easyadmin.pro.modules.sys.entity.UserPermissionsEntity;
import com.easyadmin.pro.modules.sys.rest.RouterInfoResultVo;
import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  映射层。
 *
 * @author xulin
 * @since 2024-04-02
 */
@Mapper
public interface UserPermissionsMapper extends BaseMapper<UserPermissionsEntity> {

    /**
     * 获取角色关联路由
     * @param roleId
     * @return
     */
    List<RouterInfoResultVo> selectRoleRouterInfos(@Param("roleId") Long roleId);
}
